﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data;

namespace MyVocationSpace.AJAX
{
    public partial class GetVocationDescription : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BAL.conn.connectionString = ConfigurationManager.ConnectionStrings["connectionstring"].ConnectionString;
            if (Request.QueryString["listvalue"] != null)           
            {
                int list =Convert.ToInt32(Request.QueryString["listvalue"]);
                DataSet  ds= BAL.Vocation.SelectVocationsDescription(list);
                string des = ds.Tables[0].Rows[0][0].ToString();
                Response.Write(des);                
            }

            Response.End();
        }
    }
}